Page({
    data: {
        count: 0
    },
    clickHandler() {
        this.setData({
            count: this.data.count + 1
        });
    },
    clickIng(e) {
        let that = this
        this.zan = setInterval(function () {
            that.setData({
                count: that.data.count + 1
            });
        }, 100)
    },
    clickCancel() {
        clearInterval(this.zan)
    },
    // 震动
    vibrateLongTap: function() {
        // 使手机振动400ms
        wx.vibrateLong();
    },
    vibrateShortTap: function() {
        // 使手机振动15ms
        wx.vibrateShort();
    },
});